package com.csun.cmny.provider.service.impl;

import com.csun.cmny.core.support.BaseService;
import com.csun.cmny.provider.dao.OmcFollowUpMapper;
import com.csun.cmny.provider.model.domain.OmcFollowUp;
import com.csun.cmny.provider.model.dto.FollowUpSelectDto;
import com.csun.cmny.provider.model.dto.followUp.FollowUpShiftDto;
import com.csun.cmny.provider.model.vo.followUp.FollowUpVo;
import com.csun.cmny.provider.service.OmcFollowUpService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@Service
@Transactional(rollbackFor = Exception.class)
public class OmcFollowUpServiceImpl extends BaseService<OmcFollowUp> implements OmcFollowUpService {

    @Resource
    private OmcFollowUpMapper omcFollowUpMapper;
    @Override
    public List<FollowUpVo> selectFollowUp(FollowUpSelectDto follow) {
        return omcFollowUpMapper.selectFollowUp(follow);
    }

    @Override
    public Integer followUpShift(FollowUpShiftDto followUpShiftDto) {
        return omcFollowUpMapper.followUpShift(followUpShiftDto);
    }
}
